﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="List.aspx.vb" Inherits="TeachersWorkSheets.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 804px;
        }
        .style5
        {
            height: 193px;
        }
        .style6
        {
            height: 193px;
        }
        .style7
        {
            width: 300px;
        }
        .style8
        {
            height: 91px;
        }
        .style9
        {
            width: 804px;
            height: 75px;
        }
        .style10
        {
            width: 300px;
            height: 75px;
        }
        .style11
        {
            height: 75px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <table class="style1">
        <tr>
            <td class="style9">
                </td>
            <td class="style10">
                </td>
            <td class="style11">
            </td>
        </tr>
        <tr>
            <td class="style8" align="center" colspan="2">
            
             <asp:Repeater ID="Repeater2" runat="server" DataSourceID="SqlDataSource2">
                
                <ItemTemplate>
                <a href="SheetTags.aspx?TagName=<%#Eval("Tags")%>">
                <%#Eval("Tags")%>
                </a> |
            
                
                </ItemTemplate>
                
                </asp:Repeater>
            
            
            </td>
            <td class="style8">
                <asp:ImageButton ID="ImageButton1" runat="server" 
                    ImageUrl="~/Images/rss-icon.jpg" PostBackUrl="~/RssTest.aspx" />
                </td>
        </tr>
        <tr>
            <td class="style5" align="center" colspan="2">
              <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" DataKeyNames="ID" DataSourceID="SqlDataSource1" 
                    ForeColor="#333333" GridLines="None" Width="843px">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="ID" 
                            DataNavigateUrlFormatString="Details.aspx?ID={0}" DataTextField="ShtName" 
                            HeaderText="Sheet Name" />
                        <asp:BoundField DataField="ShtSubject" HeaderText="Subject" 
                            SortExpression="ShtSubject" />
                        <asp:BoundField DataField="ShtCreator" HeaderText="Author" 
                            SortExpression="ShtCreator" />
                        <asp:BoundField DataField="ShtGrade" HeaderText="Grade" 
                            SortExpression="ShtGrade" />
                        <asp:BoundField DataField="shtlike" HeaderText="Likers" 
                            SortExpression="shtlike" />
                        <asp:BoundField DataField="ShtRegDate" DataFormatString="{0:MM/dd/yyyy}" 
                            HeaderText="Posted at" HtmlEncode="False" SortExpression="ShtRegDate" />
                        <asp:ImageField DataImageUrlField="ShtFile">
                            <ControlStyle CssClass="ListPicture" />
                        </asp:ImageField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>  
                
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:SheetsConnectionString %>" 
                    ProviderName="<%$ ConnectionStrings:SheetsConnectionString.ProviderName %>" 
                    SelectCommand="SELECT * , '~/showit.aspx?id=' &amp;  id  as url  FROM [ActivitySheet]">
                </asp:SqlDataSource>
            </td>
            <td class="style6">
                </td>
        </tr>
        <tr>
            <td class="style2">
                <br />
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="ID" DataSourceID="SqlDataSource2">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                            ReadOnly="True" SortExpression="ID" />
                        <asp:HyperLinkField DataNavigateUrlFields="Tags" 
                            DataNavigateUrlFormatString="SheetTags.aspx?TagName={0}" DataTextField="Tags" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:SheetsConnectionString %>" 
                    ProviderName="<%$ ConnectionStrings:SheetsConnectionString.ProviderName %>" 
                    SelectCommand="SELECT [Tags], [ID] FROM [Tags]"></asp:SqlDataSource>

               
                <br />
                <asp:TextBox ID="tb_TagSearch" runat="server"></asp:TextBox>
                <asp:Button ID="btn_TagSearch" runat="server" Text="Add Tag" />
                <br />
            </td>
            <td class="style7">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
     
        
    </table>
</asp:Content>
